package com.hxzy.shop.order.dto.resp;


import com.hxzy.shop.order.config.CustomerDoubleSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName PlaceOrderDrugV2Resp
 * @Author wengjt
 * @Date 2021/7/22 16:58
 * @Description
 **/
@Data
@ApiModel
public class PlaceOrderDrugV2Resp implements Serializable {
    @ApiModelProperty("活动id")
    private Long activityId;


    @ApiModelProperty("活动类型 0无活动 1限时折扣 2秒杀 3组合套餐 4满减 5第X件X折 6满赠 7砍价")
    private Integer activityType;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("药品活动价格")
    private BigDecimal drugActivityPrice;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("药品打包价格")
    private BigDecimal drugGroupPrice;
    @ApiModelProperty("组合套餐数量")


    private Integer groupNum;
    @ApiModelProperty("购物车id")
    private Long shopCarId;


    @ApiModelProperty("是否开启会员权益0未开启，1已开启")
    private Boolean isRights;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("满足金额，则开始优惠（满减）")
    private BigDecimal amount;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("优惠金额（满减）")
    private BigDecimal discountAmount;


    @ApiModelProperty("起步数量")
    private Integer baseLimit;

    @JsonSerialize(using = CustomerDoubleSerialize.class)
    @ApiModelProperty("折扣率(存百分比)")
    private BigDecimal discount;


    @ApiModelProperty("药品详情")
    private List<PlaceOrderDrugDetailsV2Resp> drugDetails;
}
